document.write('<s'+'cript type="text/jav' + 'ascript" src="../js/src/mjson.js"></scrip'+'t>');
document.write('<s'+'cript type="text/jav' + 'ascript" src="../js/src/util.js"></scrip'+'t>');

var ConnectionManager = function() {
	// this.url = 'http://teamrepublic.hubweb.net/kkmTest/2011/json_recevie.php';
	this.requestUrl = "http://192.168.0.81:8080/dcd/request.do";
	//this.requestUrl = "http://110.45.186.84:8080/dcd/request.do";
	 // this.requestUrl = "http://www.golfinsns.com/request.do";
};

ConnectionManager.prototype = {
	constructor : ConnectionManager,
	requestGet : function(json, onSuccess, onFail) {
		$.ajax({
			url : this.requestUrl, //데이터를 요청할 페이지
			type : 'GET',
			dataType : "jsonp",
			jsonp : "msp300",
			timeout : 10000,
			data : {
				"method" : "json",				
				"req" : json
			},
			error : onFail
			// success : onSuccess
		}).done(onSuccess);
	}
};

_gf = new clsGlobalBean();

function clsGlobalBean(){
	this.MYPAGE_DATA = {
		"스코어코드": null	
	};	
	this.COURSE_DATA = null;
	this.PROFILE_DATA = null;
	this.QNA_DATA = null;
	this.NOTICE_DATA=null;
	this.LOGIN_DATA={
		"isLogin" : true
      , "loginBeforeUrl" : null
      , "loginAfterUrl" : null
      , "userId" : "golfin3"
      , "nickname" : "골프인테스터"
      , "userName" : "김윤정"
	};
	this.BOOKING_DATA=null;
	this.STORAGE_KEY=null;
	this.CLUB_DATA = {
		"동호회키": 808
		, "게시판키": 44
		, "쪽지키": 111
		, "라운드키": 61
	};
}



